using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.Odbc;
namespace CocaCola_Inventory_System.Forms
{
    public partial class Histroy : Form
    {
        int _id;
        public Histroy()
        {
            InitializeComponent();
        }

        public int id
        {
            set
            {
                _id = value; ;
            }
        }
        private void Histroy_Load(object sender, EventArgs e)
        {
            if(_id  ==0)
                this.Close();
            retrieve r = new retrieve(((CocaCola_Inventory_System.Forms.Container)this.MdiParent).con);

            DataTable t = r.gethistory(_id);

            dataGridView1.DataSource = t;
            
               

        }
    }
}